package com.liushao.result;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @program: untitled1
 * @ClassName ResponseEnum
 * @description:  通用的枚举类
 * @author: 陈修华
 * @create: 2025−01-03 10:30
 * @Version 1.0
 **/
//@Getter
//@AllArgsConstructor
//@ToString
public enum ResponseEnum {
    SUCCESS(0,"成功"),
    ERROR(1,"失败"),
    INTEGRALGRADEISNULL(2,"借款额度对象无数据!"),
    UPLOAD_ERROR(3,"上传失败了！"),
    LOGIN_AUTH_ERROR(4,"登录权限存在问题，JWT校验不通过！");





    private Integer code;
    private String message;
    //代码不全 ，待会给你完整的!


    ResponseEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
